package com.senseauto.mediacodec_surface;

import android.app.Application;
import android.content.Intent;
import android.media.projection.MediaProjectionManager;

import androidx.annotation.Nullable;

public class MainApplication extends Application {
    private static MainApplication instance;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }
    public static MainApplication getInstance(){
        return instance;
    }
    int resultCode;
    Intent intentData;
    MediaProjectionManager manager;
    public void setMediaProjectionManager(MediaProjectionManager manager){
        this.manager = manager;
    }
    public MediaProjectionManager getMpMgr(){
        return manager;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public int getResultCode(){
        return this.resultCode ;
    }

    public Intent getIntentData() {
        return intentData;
    }

    public void setResultIntent(Intent intent){
        this.intentData = intent;
    }
}
